home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- # Copyright, 1990, Regents of the University of Colorado
- #
- # This script is used by the ../source/shell2 Makefile because
- # the %*&%!@ make program on an iPSC1 won't take a command line
- # this long.
- #
- BIN=$1
- LOCAL=$2
- INIT=${3:-NONE}
- DEST=${4:-NONE}
- if test ${INIT} != "NONE" -o "${DEST}" != "NONE"; then
- echo ""
- echo " checking the back-end configuration files . . ."
- echo ""
- if test ${INIT} = "YES"; then
- echo " dino2.init"
- if test -s ${BIN}/dino2.init -a \
- -s ${BIN}/new.init; then
- echo "";
- echo " WARNING: \"dino2.init\" already exists."
- echo " DINO will not overwrite it"
- echo " The new \"dino2.init\" file has"
- echo " been named \"new.init\""
- echo ""
- else
- if test -s ${BIN}/new.init; then
- mv ${BIN}/new.init ${BIN}/dino2.init
- else
- if test -s ${BIN}/dino2.init; then
- echo ""
- echo " WARNING: Something is wrong, the makefile"
- echo " was invoked as if this were a new"
- echo " installation, but there is only an"
- echo " old \"dino2.init\" file."
- echo " DINO may not run properly."
- echo ""
- else
- echo ""
- echo " WARNING: File \"dino2.init\" does not exist,"
- echo " DINO will not run properly."
- echo ""
- fi
- fi
- fi
- fi
- if test "${DEST}" != "NONE"; then
- for f in ${DEST}; do
- echo " dino2.$f"
- if test -s ${LOCAL}/dino2.$f -a -s ${LOCAL}/new.$f; then
- echo ""
- echo " WARNING: \"dino2.$f\" already exists."
- echo " DINO will not overwrite it"
- echo " The new \"dino2.$f\" file has"
- echo " been named \"new.$f\""
- echo ""
- else
- if test -s ${LOCAL}/new.$f; then
- mv ${LOCAL}/new.$f ${LOCAL}/dino2.$f
- else
- if test -s ${LOCAL}/dino2.$f; then
- echo ""
- echo " WARNING: Something is wrong, the makefile"
- echo " was invoked as if this were a new"
- echo " installation, but there is only an"
- echo " old \"dino2.$f\" file."
- echo " DINO may not run properly."
- echo ""
- else
- echo ""
- echo " WARNING: File \"dino2.$f\" does not exist,"
- echo " DINO will not run properly."
- echo ""
- fi
- fi
- fi
- done
- fi
- else
- echo ""
- echo " this is an update, the Automated Installer will"
- echo " not touch the back-end configuration files."
- echo ""
- fi
-